package cn.le.thread;

/**
 * Created by admin on 2017/7/26.
 */
public abstract class IntGennerator {

    private volatile boolean canceled = false;
    public abstract int next();
    public void cancel(){
        canceled = true;
    }
    public boolean isCanceled()
    {
        return canceled;
    }

}
